﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Dapper_Core.Table
{
    public class Sys_Log
    {
        /// <summary>
        /// Guid主键，主键必须加[Key]特性，若想对名为Id的列赋值必须加[Required]特性
        /// </summary>
        [Key]
        [Required]
        public string Id { get; set; }
        /// <summary>
        /// 访问者所用设备的IP
        /// </summary>
        public string IP { get; set; }
        /// <summary>
        /// 日志所属应用
        /// </summary>
        public string Application { get; set; }
        /// <summary>
        /// 日志所属类
        /// </summary>
        public string Logger { get; set; }
        /// <summary>
        /// 日志级别
        /// </summary>
        public string Level { get; set; }
        /// <summary>
        /// 日志信息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 相关的参数
        /// </summary>
        public string Data { get; set; }
        /// <summary>
        /// 异常信息
        /// </summary>
        public string Exception { get; set; }
        /// <summary>
        /// 日志所属方法
        /// </summary>
        public string Callsite { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
    }
}